<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui">

<ui:composition template="./../template/simple.xhtml">

	<ui:define name="content">
	    <h:form>
	    	<div class="FORM_HEADER">
	    		Company Information
	    	</div>
	    	<h:panelGrid columns="3" styleClass="APPLICATION_CONTENT">
	    		<h:outputText value=""/>
	    		<h:inputHidden id="id" value="#{companyController.companyDTO.id}"/>
	    		<h:outputText value=""/>
	    	
	    		<p:outputLabel for="name" value="Company Name:"/>
	    		<p:inputText id="name" value="#{companyController.companyDTO.name}"
                                     required="true" requiredMessage="Cannot be empty!"/>
                        <p:message for="name"/>
	    		
	    		<p:outputLabel for="website" value="Website:"/>
	    		<p:inputText id="website" value="#{companyController.companyDTO.website}"
                                     required="true" requiredMessage="Cannot be empty!"/>
	    		<p:message for="website"/>
                        
                        <p:outputLabel for="email" value="Email:"/>
	    		<p:inputText id="email" value="#{companyController.companyDTO.email}"
                                     required="true" requiredMessage="Cannot be empty!"/>
	    		<p:message for="email"/>
	    		
                        <!--
	    		<p:outputLabel for="firstName" value="First Name:"/>
	    		<p:inputText id="firstName" value="#{companyController.companyDTO.firstName}"
                                     required="true" requiredMessage="Cannot be empty!"/>
	    		<p:message for="firstName"/>
	    		
	    		<p:outputLabel for="middleInitial" value="Middle Initial:"/>
	    		<p:inputText id="middleInitial" value="#{companyController.companyDTO.middleInitial}"/>
	    		<p:message for="middleInitial"/>
	    		
	    		<p:outputLabel for="lastName" value="Last Name:"/>
	    		<p:inputText id="lastName" value="#{companyController.companyDTO.lastName}"/>
	    		<p:message for="lastName"/>
	
	    		
	    		<p:outputLabel for="contactNo" value="Contact No:"/>
	    		<p:inputText id="contactNo" value="#{companyController.companyDTO.contactNo}"
                                     required="true" requiredMessage="Cannot be empty!"/>
	    		<p:message for="contactNo"/>
	    		-->
                        
	    		<p:commandButton value="Save" action="#{companyController.save}"
                                         ajax="false"/>
                        
	    	</h:panelGrid>
	    </h:form>
	</ui:define>

</ui:composition>
</html>